<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container" id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-child"></i> <strong>绑定详情</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>系统管理</li>
				<li class="active">绑定详情</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="box box-info">
				<input type="hidden" id="bindGridId" /> <input type="hidden"
					id="unbindGridId" />
				<div class="box-header with-border">
					<i class="fa fa-th-list"></i>
					<h4 class="box-title">绑定详情</h4>
				</div>
			</div>

			<div class="row">
				<div class="col-md-2">
					<div class="box box-info">
						<div class="box-header with-border">

							<h3 class="box-title">
								<i class="fa fa-cubes "></i><strong>区域树信息</strong>
							</h3>
						</div>

						<div class="box-body">
							<ul id="divisionTree" class="ztree"></ul>
						</div>
					</div>
				</div>
				<div class="col-md-5">
					<div class="box box-info">
						<div class="box-header with-border">
							<h3 class="box-title">
								<i class="fa fa-cubes "></i><strong>已绑定区域的网格信息</strong>
							</h3>
						</div>

						<div class="box-body">
							<div class="form-inline">
								<div class="input-group">
									<input type="text" id="search1" class="form-control"
										placeholder="search..." style="width: 180px;" /> <span
										class="input-group-btn">
										<button type="button" class="btn btn-info searchBtn1">查询</button>
										<button type="button" name="reset"
											class="btn btn-info resetBtn1">撤消</button>
									</span>
								</div>

							</div>
							<br />
							<table id="dataGridTable"
								class="mytable display table-bordered text-center"
								cellspacing="0" width="100%">
								<thead>
									<tr>
										<th width="6%">序号</th>
										<th width="8%">网格编码</th>
										<th width="8%">网格名称</th>
										<th width="8%">网格面积</th>
										<th width="8%">网格状态</th>
										<th width="8%">网格类型</th>
										<th width="8%">OBJECTID</th>
										<th width="8%">所属区域</th>

									</tr>
								</thead>
								<tbody>

								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="col-md-5">
					<div class="box box-info">
						<div class="box-header with-border">
							<h3 class="box-title">
								<i class="fa fa-cubes "></i><strong>已绑定网格的用户信息</strong>
							</h3>
						</div>
						<input id="gridId" type="hidden" />
						<div class="form-inline">
							<div class="input-group">
								<input type="text" id="search3" class="form-control"
									placeholder="search..." style="width: 180px;" /> <span
									class="input-group-btn">
									<button type="button" class="btn btn-info searchBtn3">查询</button>
									<button type="button" name="reset"
										class="btn btn-info resetBtn3">撤消</button>
									<button type="button" name="reset"
										class="btn btn-danger unbindGrid">解除绑定</button>
								</span>
							</div>

						</div>
						<div class="box-body">
							<table width="100%" id="dataBindUserTable"
								class="mytable dataTable table-bordered text-center table-striped table-hover">
								<thead>
									<tr>
										<th width="5%">序号</th>
										<th width="5%"><input type="checkbox"
											id="selectbindUser" /></th>
										<th width="10%">用户姓名</th>
									</tr>
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</div>
					<div class="box box-info">
						<div class="box-header with-border">
							<h3 class="box-title">
								<i class="fa fa-cubes "></i><strong>未绑定网格的用户信息</strong>
							</h3>
						</div>
						<div class="form-inline">
							<div class="input-group">
								<input type="text" id="search2" class="form-control"
									placeholder="search..." style="width: 180px;" /> <span
									class="input-group-btn">
									<button type="button" class="btn btn-info searchBtn2">查询</button>
									<button type="button" name="reset"
										class="btn btn-info resetBtn2">撤消</button>
									<button type="button" name="reset"
										class="btn btn-primary bindGrid">绑定网格</button>
								</span>
							</div>

						</div>
						<div class="box-body">
							<table width="100%" id="dataUnbindUserTable"
								class="mytable dataTable table-bordered text-center table-striped table-hover">
								<thead>
									<tr>
										<th width="5%">序号</th>
										<th width="5%"><input type="checkbox"
											id="selectUnbindUser" /></th>
										<th width="10%">用户姓名</th>
									</tr>
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</section>


		<script th:src="@{/userGridDivision/index.js}"></script>
	</div>

</body>
</html>